/**
 * Copyright© 2003-2019 浙江汇信科技有限公司, All Rights Reserved. <br/>
 */
package com.icinfo.cloud.provider.punish.common.electricsent.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 描述: 文书送达登记 document_sent_register 对应的实体类.<br>
 * WARNING：不是表中字段的属性必须加@Transient注解
 * @author framework generator
 * @LocalDateTime 2022年02月18日
 */
@Data
@Table(name = "upcase.document_sent_register")
public class DocumentSentRegister implements Serializable {
    /**
     * 主键id
     */
    @Id
    @Column(name = "id")
    private String id;

    /**
     * 案件id
     */
    @Column(name = "case_id")
    private String caseId;

    /**
     * 文书id
     */
    @Column(name = "document_id")
    private String documentId;

    /**
     * 送达地址
     */
    @Column(name = "sent_address")
    private String sentAddress;

    /**
     * 送达时间
     */
    @Column(name = "sent_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime sentTime;

    /**
     * 送达方式
     */
    @Column(name = "sent_way")
    private String sentWay;

    /**
     * 签收人
     */
    @Column(name = "receiver")
    private String receiver;

    /**
     * 与受送达人间关系
     */
    @Column(name = "receiver_relation")
    private String receiverRelation;

    /**
     * 见证人及其单位或住址
     */
    @Column(name = "witness_address")
    private String witnessAddress;

    /**
     * 备注
     */
    @Column(name = "remark")
    private String remark;


    /**
     * 创建时间
     */
    @Column(name = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 最新更新时间
     */
    @Column(name = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateTime;


    /**
     * 操作人id
     */
    @Column(name = "operate_user_id")
    private String operateUserId;


    /**
     * 操作人真实姓名
     */
    @Column(name = "operate_user_real_name")
    private String operateUserRealName;

    private static final long serialVersionUID = 1L;
}